
import { ecs } from '../framework/assets/libs/ecs/ECS';
import { InitEntity } from "../init/initEntity";
import { GridEntity } from "../ecs/gridEntity";

// 单例模块
@ecs.register('SingletonModule')
export class SingletonModule extends ecs.Comp {
    // 不为空
    initialize: InitEntity = null!;
    // 整个格子
    grid!: GridEntity;

    reset(): void {
    }
}

export let smc: SingletonModule = ecs.getSingleton(SingletonModule);
